package cn.bonoon.entities.interacting;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

@Entity
@Table(name = "t_faqr")
public class FaqReleaseEntity extends AbstractPersistable{

	private static final long serialVersionUID = -3007338137213145681L;

	/** 常见问题分类发布在哪个系统 */
	@Column(name = "C_KEY")
	private String key;

	@ManyToOne
	@JoinColumn(name = "R_CATALOG_ID")
	private FaqCatalogEntity catalog;

	@Column(name = "C_DISABLE")
	private boolean disable;

	public FaqCatalogEntity getCatalog() {
		return catalog;
	}

	public void setCatalog(FaqCatalogEntity catalog) {
		this.catalog = catalog;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public boolean isDisable() {
		return disable;
	}

	public void setDisable(boolean disable) {
		this.disable = disable;
	}
	
}
